com.supermap.plot
Class AnimationGO
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.plot.AnimationGO
-
- Direct Known Subclasses:
- AnimationAttribute, AnimationBlink, AnimationGrow, AnimationRotate, AnimationScale, AnimationShow, AnimationWay
public class AnimationGO extends InternalHandleDisposable
All animation parent class
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Closes the animationsboolean
fromXml(java.lang.String xmlStr)
Converts data from xml to animationAnimationDefine.AnimationType
getAnimationType()
Gets animation typesdouble
getDuration()
Gets time of animation.int
getGeometry()
Gets the geometric object id.java.lang.String
getLayerName()
Gets layer namejava.lang.String
getName()
Gets the animation namedouble
getStartTime()
Gets the starting timeboolean
setDuration(double Timelong)
Sets time of animation.void
setGeometry(GeoGraphicObject pGeometry, long pMapControl, java.lang.String layerName)
Sets animation objectsboolean
setName(java.lang.String name)
Sets the animation nameboolean
setStartTime(double nStartTime)
Sets the starting timejava.lang.String
toXml()
Converts to the xml object
-
-
-
Method Detail
-
getAnimationType
public AnimationDefine.AnimationType getAnimationType()
Gets animation types- Returns:
- Animation types
-
setGeometry
public void setGeometry(GeoGraphicObject pGeometry, long pMapControl, java.lang.String layerName)
Sets animation objects- Parameters:
pGeometry
- The Geometry object.pMapControl
- mapcontrol objectlayerName
- Layer name
-
getGeometry
public int getGeometry()
Gets the geometric object id.- Returns:
- id
-
setName
public boolean setName(java.lang.String name)
Sets the animation name- Parameters:
name
- Name- Returns:
- whether settings are successful.
-
getName
public java.lang.String getName()
Gets the animation name- Returns:
- Animation name
-
setStartTime
public boolean setStartTime(double nStartTime)
Sets the starting time- Parameters:
nStartTime
- the starting time- Returns:
- whether settings are successful.
-
getStartTime
public double getStartTime()
Gets the starting time- Returns:
- the starting time
-
setDuration
public boolean setDuration(double Timelong)
Sets time of animation.- Parameters:
Timelong
- Time- Returns:
- whether settings are successful.
-
getDuration
public double getDuration()
Gets time of animation.- Returns:
- The time of animation
-
getLayerName
public java.lang.String getLayerName()
Gets layer name- Returns:
- The name of the layer.
-
fromXml
public boolean fromXml(java.lang.String xmlStr)
Converts data from xml to animation- Parameters:
xmlStr
- xml object- Returns:
- whether succeed
-
toXml
public java.lang.String toXml()
Converts to the xml object- Returns:
- xml
-
dispose
public void dispose()
Closes the animations
-
-